package Test;

import java.util.Arrays;

public class test06 {
    public static boolean IsContinuous (int[] numbers) {
        // write code here

        int zero = 0;
        int minN  = 14;
        int maxN  = 0;
//        Arrays.sort(numbers);
        int[] hash = new int[14];
        for(int i=0;i<5;i++){
            if(numbers[i]!=0) {
                if(hash[numbers[i]]!=0) return false;
                else hash[numbers[i]]++;
                minN = Math.min(minN,numbers[i]);
                maxN = Math.max(maxN,numbers[i]);
            }
        }
        return maxN - minN<=4;
    }

    public static void main(String[] args) {
        int[] arr = {0,0,2,4,6};
        boolean b = IsContinuous(arr);
        System.out.println();
    }
}
